/*
word.cpp
(c) 2010 Yury Hamenkov
This file is part of qWordCards.

qWordCards is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

qWordCards is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with qWordCards. If not, see <http://www.gnu.org/licenses/>.
*/

#include "word.h"
using namespace qWordCards;

Word::Word(QString &w, QString &tc, QString &tl) :
		_word (w),
		_transcription(tc),
		_translation(tl)
{
	/*Q_ASSERT(parentDictionary != 0);
	Q_ASSERT(index != 0);*/
}

Word::Word() :
		_word(""),
		_transcription(""),
		_translation("")
{
}

Word::Word(const Word &w) :
		_word(w._word),
		_transcription(w._transcription),
		_translation(w._translation)
{
}

Word& Word::operator=(const Word &w) {
	_word = w._word;
	_transcription = w._transcription;
	_translation = w._translation;
	return *this;
}

QString Word::GetWord() const {
	return _word;
}

QString Word::GetTranscription() const {
	return _transcription;
}

QString Word::GetTranslation() const {
	return _translation;
}
